#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int t;
	scanf("%d",&t);
	while(t--)
	{
		int n;
		scanf("%d",&n);
		if(n<4)
		{
			printf("-1\n");
			continue;
		}
		for(int i = n;i>=1;)
		{
			if(i%2) 
			{
				printf("%d ",i);
				i = i-2;
			}
			else i--;
		}
		printf("4 2");
		for(int i = 6;i<=n;i += 2)
		{
			printf(" %d",i);
		}
		printf("\n");
	}

} 
